<?php

namespace McUser\Model;
use Common\Model\CommonModel;

/*
 *  Copyright (c) 2014 The CCP project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a Beijing Speedtong Information Technology Co.,Ltd license
 *  that can be found in the LICENSE file in the root of the web site.
 *
 *   http://www.yuntongxun.com
 *
 *  An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

class McAboutModel extends CommonModel {

	function _initialize(){}

	protected $trueTableName = 'cmf_posts';
	/* protected $dbName = 'asheng'; */

	/*   得到本果会员列表   */
	public function read_post($id){

		$where['id'] = $id;

		$posts = $this-> where($where) ->select();		

		/*
		dump ($posts);
		*/

		return  $posts;		
	}

	/*	读取本果VIP列表	*/
	public function read_post_vipList(){

		$vipList = C('vipList');
		$idList = $vipList['vip0001'].','.$vipList['vip0010'].','.$vipList['vip0100'];
		//echo $idList;
		$posts = $this-> where("id in ('.$idList.')") ->select();		
		
		//dump ($posts);		

		return  $posts;		
	}

}